package a.j;

import a.c.v;

import java.awt.*;
import java.awt.geom.GeneralPath;
import java.awt.geom.Point2D;

public class bc
  implements wb.n_
{
  public static int a;
  
  protected GeneralPath a(tb paramtb, h paramh, GeneralPath paramGeneralPath, gb paramgb, boolean paramBoolean)
  {
    if (paramtb.z()) {
      return ye.a(paramGeneralPath);
    }
    return paramGeneralPath;
  }
  
  protected Paint a(tb paramtb, boolean paramBoolean)
  {
    return paramtb.A();
  }
  
  protected Paint b(tb paramtb, boolean paramBoolean)
  {
    return tb.B();
  }
  
  protected Stroke c(tb paramtb, boolean paramBoolean)
  {
    return paramtb.D();
  }
  
  protected Stroke d(tb paramtb, boolean paramBoolean)
  {
    return tb.F();
  }
  
  protected Stroke e(tb paramtb, boolean paramBoolean)
  {
    return c.e;
  }
  
  protected boolean a(tb paramtb, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    Paint localPaint = b(paramtb, paramBoolean);
    if (localPaint != null)
    {
      if (bool2) {
        break label169;
      }
      if (paramBoolean)
      {
        Stroke localStroke1 = c(paramtb, true);
        Stroke localStroke2 = d(paramtb, paramBoolean);
        if (((bool2) || ((localStroke1 instanceof BasicStroke))) && ((bool2) || ((localStroke2 instanceof BasicStroke))))
        {
          int i = (int)(((BasicStroke)localStroke1).getLineWidth() - ((BasicStroke)localStroke2).getLineWidth());
          if (!bool2)
          {
            if (i >= 0)
            {
              paramGraphics2D.setStroke(new BasicStroke(((BasicStroke)localStroke1).getLineWidth() + 4.0F, 2, 2));
              if (bool2) {
                break label167;
              }
              if (!bool1) {}
            }
            else
            {
              paramGraphics2D.setStroke(localStroke2);
            }
          }
          else
          {
            if (bool2) {
              break label167;
            }
            if (!bool1) {}
          }
        }
        else
        {
          paramGraphics2D.setStroke(localStroke2);
        }
        paramGraphics2D.setPaint(localPaint);
        label167:
        return true;
      }
    }
    label169:
    return false;
  }
  
  protected boolean b(tb paramtb, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    Paint localPaint = a(paramtb, paramBoolean);
    if (!ld.E)
    {
      if (localPaint != null)
      {
        paramGraphics2D.setStroke(c(paramtb, paramBoolean));
        paramGraphics2D.setPaint(localPaint);
      }
    }
    else {
      return true;
    }
    return false;
  }
  
  protected boolean c(tb paramtb, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    return false;
  }
  
  public void a(tb paramtb, h paramh, GeneralPath paramGeneralPath, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    gb localgb = mb.a(paramtb, paramGraphics2D);
    paramGraphics2D = (Graphics2D)paramGraphics2D.create();
    try
    {
      paramGeneralPath = a(paramtb, paramh, paramGeneralPath, localgb, paramBoolean);
      c(paramtb, paramh, paramGeneralPath, paramGraphics2D, paramBoolean);
      d(paramtb, paramh, paramGeneralPath, paramGraphics2D, paramBoolean);
      if (!ld.E)
      {
        if (a(paramGraphics2D, false)) {
          d(paramtb, paramGraphics2D, paramBoolean);
        }
        e(paramtb, paramh, paramGeneralPath, paramGraphics2D, paramBoolean);
        f(paramtb, paramh, paramGeneralPath, paramGraphics2D, paramBoolean);
      }
    }
    finally
    {
      paramGraphics2D.dispose();
    }
  }
  
  protected void c(tb paramtb, h paramh, GeneralPath paramGeneralPath, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    boolean bool = ld.E;
    if (!bool) {
      if (a(paramtb, paramGraphics2D, paramBoolean)) {
        a(paramtb, paramGraphics2D, paramGeneralPath, true);
      }
    }
    if ((bool) || (b(paramtb, paramGraphics2D, paramBoolean)))
    {
      a(paramtb, paramGraphics2D, paramGeneralPath, false);
      b(paramtb, paramh, paramGeneralPath, paramGraphics2D);
    }
  }
  
  protected void d(tb paramtb, h paramh, GeneralPath paramGeneralPath, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    if ((ld.E) || (c(paramtb, paramGraphics2D, paramBoolean))) {
      a(paramtb, paramGraphics2D, paramGeneralPath, paramBoolean);
    }
  }
  
  protected void a(tb paramtb, Graphics2D paramGraphics2D, GeneralPath paramGeneralPath, boolean paramBoolean)
  {
    paramGraphics2D.draw(paramGeneralPath);
  }
  
  protected void d(tb paramtb, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    paramtb.h(paramGraphics2D);
  }
  
  protected void e(tb paramtb, h paramh, GeneralPath paramGeneralPath, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    paramtb.f(paramGraphics2D);
  }
  
  protected void a(tb paramtb, h paramh, GeneralPath paramGeneralPath, Graphics2D paramGraphics2D)
  {
    paramtb.d(paramGraphics2D);
  }
  
  protected void f(tb paramtb, h paramh, GeneralPath paramGeneralPath, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    if (paramBoolean) {
      a(paramtb, paramh, paramGeneralPath, paramGraphics2D);
    }
    paramtb.e(paramGraphics2D);
  }
  
  protected void b(tb paramtb, h paramh, GeneralPath paramGeneralPath, Graphics2D paramGraphics2D)
  {
    paramtb.g(paramGraphics2D);
  }
  
  public void b(tb paramtb, h paramh, GeneralPath paramGeneralPath, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    boolean bool3 = ld.E;
    boolean bool2 = ld.D;
    Paint localPaint = paramGraphics2D.getPaint();
    Stroke localStroke = paramGraphics2D.getStroke();
    Object localObject;
    if (paramBoolean)
    {
      localObject = b(paramtb, paramBoolean);
      if (!bool3)
      {
        if (localObject != null) {
          paramGraphics2D.setPaint((Paint)localObject);
        }
      }
      else
      {
        if (bool3) {
          break label120;
        }
        if (!bool2) {
          break label103;
        }
      }
    }
    else
    {
      localObject = a(paramtb, paramBoolean);
      if (!bool3)
      {
        if (localObject != null) {
          paramGraphics2D.setPaint((Paint)localObject);
        }
      }
      else
      {
        if (bool3) {
          break label120;
        }
        if (!bool2) {
          break label103;
        }
      }
      return;
    }
    label103:
    paramGraphics2D.setStroke(e(paramtb, paramBoolean));
    if (kg.e(paramGraphics2D))
    {
      label120:
      localObject = paramtb.h();
      double d3 = paramtb.k().a((ld)localObject);
      double d4 = paramtb.k().b((ld)localObject);
      v localv = paramh.f();
      do
      {
        if (localv == null) {
          break;
        }
        eb localeb = (eb)localv.c();
        d1 = localeb.b();
        d2 = localeb.c();
        paramGraphics2D.drawLine((int)d3, (int)d4, (int)d1, (int)d2);
        d3 = d1;
        d4 = d2;
        localv = localv.a();
        if ((!bool3) && (bool2)) {
          break label283;
        }
      } while (!bool2);
      localObject = paramtb.g();
      double d1 = paramtb.l().a((ld)localObject);
      double d2 = paramtb.l().b((ld)localObject);
      if (bool3) {
        break label462;
      }
      paramGraphics2D.drawLine((int)d3, (int)d4, (int)d1, (int)d2);
    }
    else
    {
      label283:
      boolean bool1 = paramtb.I() != ab.e;
      int i = paramtb.H() != ab.e ? 1 : 0;
      if ((bool3) || ((bool1) || (i != 0)))
      {
        GeneralPath localGeneralPath = new GeneralPath(paramGeneralPath.getWindingRule());
        Point2D localPoint2D;
        if (!bool3)
        {
          if (bool1)
          {
            localPoint2D = paramtb.x();
            localGeneralPath.moveTo((float)localPoint2D.getX(), (float)localPoint2D.getY());
          }
          localGeneralPath.append(paramGeneralPath, bool1);
        }
        if (!bool3)
        {
          if (i != 0)
          {
            localPoint2D = paramtb.y();
            localGeneralPath.lineTo((float)localPoint2D.getX(), (float)localPoint2D.getY());
          }
          paramGraphics2D.draw(localGeneralPath);
        }
        if (bool3) {
          break label465;
        }
        if (!bool2) {}
      }
      else
      {
        paramGraphics2D.draw(paramGeneralPath);
      }
    }
    paramGraphics2D.setStroke(localStroke);
    paramGraphics2D.setPaint(localPaint);
    label462:
    if (a(paramGraphics2D, true)) {
      label465:
      d(paramtb, paramGraphics2D, paramBoolean);
    }
  }
  
  static boolean a(Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    boolean bool = ld.E;
    Object localObject = paramGraphics2D.getRenderingHint(kg.c);
    if (!bool) {
      if (paramBoolean) {
        return kg.e.equals(localObject);
      }
    }
    if (!bool) {}
    return !kg.f.equals(localObject);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.bc

 * JD-Core Version:    0.7.0.1

 */